#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Nov 23 20:22:38 2020

@author: edger330
"""

def sumFunc(*args):
    sum = 0
    for item in args:
        sum += item
    return sum

def listFunc(con):
    lengths = len(con)
    newList = []
    for i in range(0,lengths):
        if(i%2):
            newList.append(con[i])
    return newList

def dictCheck(dictParms):
    dictA = {}
    for key,value in dictParms.items():
        if len(value)>2:
            dictA[key] = value[:2]
        else: 
            dictA[key] = value
    return dictA

print(dictCheck({'name':'zouzhengting','hobby':['running','singing','programming'],'characteristic':'self-ori'}))             